package cn.mzy.controller;

import cn.mzy.domain.User;
import org.springframework.web.bind.annotation.PathVariable;

public class FuseDowngradeUtil {

    public static User getUserByIdFallback(@PathVariable("id") Long id, Throwable e) {
        e.printStackTrace();
        return new User(-1L, "熔断服务降级触发！", "服务不可用，请稍后重试！");
    }

}